<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'ShowCustomer.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<sx:head parseContent="true" />

  </head>
  
  <body>
   <s:form action="CustServer.action" enctype="multipart/form-data">
			<table>
				<s:hidden id="hid_csex" value="%{#session.Customer.csex}"></s:hidden>
				<s:textfield name="cnum" label="电话号码"
					value="%{#session.Customer.cnum}"></s:textfield>

				<s:select name="sauthority" list="{'普通会员','高级会员','企业客户'}"
					label="会员等级" headerKey="0" headerValue="---请选择客户会员等级---"></s:select>

				<s:textfield name="cname" label="姓名"
					value="%{#session.Customer.cname}"></s:textfield>
				<s:radio name="csex" cssClass="radio" list="{'男','女'}"
					value="{'1','0'}" label="性别"></s:radio>

				<sx:datetimepicker label="出生年月" name="cage"
					value="%{#session.Customer.cage}"></sx:datetimepicker>

				<s:textfield name="professional" label="职业"
					value="%{#session.Customer.professional}"></s:textfield>
				<s:textfield name="cmail" label="邮箱"
					value="%{#session.Customer.cmail}"></s:textfield>
				<s:submit value="修改" method="updateCustomer"></s:submit>
			</table>
		</s:form>
  </body>
</html>
